package com.eshop.modules.system.service.dto;

import java.sql.Timestamp;
import java.util.List;
import java.io.Serializable;

public class MenuDto implements Serializable
{
    private Long id;
    private Integer type;
    private String permission;
    private String name;
    private Long sort;
    private String path;
    private String component;
    private Long pid;
    private Boolean iFrame;
    private Boolean cache;
    private Boolean hidden;
    private String componentName;
    private String icon;
    private List<MenuDto> children;
    private Timestamp createTime;
    
    public Long getId() {
        return this.id;
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public String getPermission() {
        return this.permission;
    }
    
    public String getName() {
        return this.name;
    }
    
    public Long getSort() {
        return this.sort;
    }
    
    public String getPath() {
        return this.path;
    }
    
    public String getComponent() {
        return this.component;
    }
    
    public Long getPid() {
        return this.pid;
    }
    
    public Boolean getIFrame() {
        return this.iFrame;
    }
    
    public Boolean getCache() {
        return this.cache;
    }
    
    public Boolean getHidden() {
        return this.hidden;
    }
    
    public String getComponentName() {
        return this.componentName;
    }
    
    public String getIcon() {
        return this.icon;
    }
    
    public List<MenuDto> getChildren() {
        return this.children;
    }
    
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setId(final Long id) {
        this.id = id;
    }
    
    public void setType(final Integer type) {
        this.type = type;
    }
    
    public void setPermission(final String permission) {
        this.permission = permission;
    }
    
    public void setName(final String name) {
        this.name = name;
    }
    
    public void setSort(final Long sort) {
        this.sort = sort;
    }
    
    public void setPath(final String path) {
        this.path = path;
    }
    
    public void setComponent(final String component) {
        this.component = component;
    }
    
    public void setPid(final Long pid) {
        this.pid = pid;
    }
    
    public void setIFrame(final Boolean iFrame) {
        this.iFrame = iFrame;
    }
    
    public void setCache(final Boolean cache) {
        this.cache = cache;
    }
    
    public void setHidden(final Boolean hidden) {
        this.hidden = hidden;
    }
    
    public void setComponentName(final String componentName) {
        this.componentName = componentName;
    }
    
    public void setIcon(final String icon) {
        this.icon = icon;
    }
    
    public void setChildren(final List<MenuDto> children) {
        this.children = children;
    }
    
    public void setCreateTime(final Timestamp createTime) {
        this.createTime = createTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof MenuDto)) {
            return false;
        }
        final MenuDto other = (MenuDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        Label_0065: {
            if (this$id == null) {
                if (other$id == null) {
                    break Label_0065;
                }
            }
            else if (this$id.equals(other$id)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$type = this.getType();
        final Object other$type = other.getType();
        Label_0102: {
            if (this$type == null) {
                if (other$type == null) {
                    break Label_0102;
                }
            }
            else if (this$type.equals(other$type)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$sort = this.getSort();
        final Object other$sort = other.getSort();
        Label_0139: {
            if (this$sort == null) {
                if (other$sort == null) {
                    break Label_0139;
                }
            }
            else if (this$sort.equals(other$sort)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$pid = this.getPid();
        final Object other$pid = other.getPid();
        Label_0176: {
            if (this$pid == null) {
                if (other$pid == null) {
                    break Label_0176;
                }
            }
            else if (this$pid.equals(other$pid)) {
                break Label_0176;
            }
            return false;
        }
        final Object this$iFrame = this.getIFrame();
        final Object other$iFrame = other.getIFrame();
        Label_0213: {
            if (this$iFrame == null) {
                if (other$iFrame == null) {
                    break Label_0213;
                }
            }
            else if (this$iFrame.equals(other$iFrame)) {
                break Label_0213;
            }
            return false;
        }
        final Object this$cache = this.getCache();
        final Object other$cache = other.getCache();
        Label_0250: {
            if (this$cache == null) {
                if (other$cache == null) {
                    break Label_0250;
                }
            }
            else if (this$cache.equals(other$cache)) {
                break Label_0250;
            }
            return false;
        }
        final Object this$hidden = this.getHidden();
        final Object other$hidden = other.getHidden();
        Label_0287: {
            if (this$hidden == null) {
                if (other$hidden == null) {
                    break Label_0287;
                }
            }
            else if (this$hidden.equals(other$hidden)) {
                break Label_0287;
            }
            return false;
        }
        final Object this$permission = this.getPermission();
        final Object other$permission = other.getPermission();
        Label_0324: {
            if (this$permission == null) {
                if (other$permission == null) {
                    break Label_0324;
                }
            }
            else if (this$permission.equals(other$permission)) {
                break Label_0324;
            }
            return false;
        }
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        Label_0361: {
            if (this$name == null) {
                if (other$name == null) {
                    break Label_0361;
                }
            }
            else if (this$name.equals(other$name)) {
                break Label_0361;
            }
            return false;
        }
        final Object this$path = this.getPath();
        final Object other$path = other.getPath();
        Label_0398: {
            if (this$path == null) {
                if (other$path == null) {
                    break Label_0398;
                }
            }
            else if (this$path.equals(other$path)) {
                break Label_0398;
            }
            return false;
        }
        final Object this$component = this.getComponent();
        final Object other$component = other.getComponent();
        Label_0435: {
            if (this$component == null) {
                if (other$component == null) {
                    break Label_0435;
                }
            }
            else if (this$component.equals(other$component)) {
                break Label_0435;
            }
            return false;
        }
        final Object this$componentName = this.getComponentName();
        final Object other$componentName = other.getComponentName();
        Label_0472: {
            if (this$componentName == null) {
                if (other$componentName == null) {
                    break Label_0472;
                }
            }
            else if (this$componentName.equals(other$componentName)) {
                break Label_0472;
            }
            return false;
        }
        final Object this$icon = this.getIcon();
        final Object other$icon = other.getIcon();
        Label_0509: {
            if (this$icon == null) {
                if (other$icon == null) {
                    break Label_0509;
                }
            }
            else if (this$icon.equals(other$icon)) {
                break Label_0509;
            }
            return false;
        }
        final Object this$children = this.getChildren();
        final Object other$children = other.getChildren();
        Label_0546: {
            if (this$children == null) {
                if (other$children == null) {
                    break Label_0546;
                }
            }
            else if (this$children.equals(other$children)) {
                break Label_0546;
            }
            return false;
        }
        final Object this$createTime = this.getCreateTime();
        final Object other$createTime = other.getCreateTime();
        if (this$createTime == null) {
            if (other$createTime == null) {
                return true;
            }
        }
        else if (this$createTime.equals(other$createTime)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof MenuDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        final Object $type = this.getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        final Object $sort = this.getSort();
        result = result * 59 + (($sort == null) ? 43 : $sort.hashCode());
        final Object $pid = this.getPid();
        result = result * 59 + (($pid == null) ? 43 : $pid.hashCode());
        final Object $iFrame = this.getIFrame();
        result = result * 59 + (($iFrame == null) ? 43 : $iFrame.hashCode());
        final Object $cache = this.getCache();
        result = result * 59 + (($cache == null) ? 43 : $cache.hashCode());
        final Object $hidden = this.getHidden();
        result = result * 59 + (($hidden == null) ? 43 : $hidden.hashCode());
        final Object $permission = this.getPermission();
        result = result * 59 + (($permission == null) ? 43 : $permission.hashCode());
        final Object $name = this.getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        final Object $path = this.getPath();
        result = result * 59 + (($path == null) ? 43 : $path.hashCode());
        final Object $component = this.getComponent();
        result = result * 59 + (($component == null) ? 43 : $component.hashCode());
        final Object $componentName = this.getComponentName();
        result = result * 59 + (($componentName == null) ? 43 : $componentName.hashCode());
        final Object $icon = this.getIcon();
        result = result * 59 + (($icon == null) ? 43 : $icon.hashCode());
        final Object $children = this.getChildren();
        result = result * 59 + (($children == null) ? 43 : $children.hashCode());
        final Object $createTime = this.getCreateTime();
        result = result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "MenuDto(id=" + this.getId() + ", type=" + this.getType() + ", permission=" + this.getPermission() + ", name=" + this.getName() + ", sort=" + this.getSort() + ", path=" + this.getPath() + ", component=" + this.getComponent() + ", pid=" + this.getPid() + ", iFrame=" + this.getIFrame() + ", cache=" + this.getCache() + ", hidden=" + this.getHidden() + ", componentName=" + this.getComponentName() + ", icon=" + this.getIcon() + ", children=" + this.getChildren() + ", createTime=" + this.getCreateTime() + ")";
    }
}
